<?php require('includes/header.php'); ?>
<?php require('includes/nav.php'); ?>
	

	<?php for($i = 0; $i < count($errors); $i++): ?>
		<div class="errors">
			<?php echo $errors[$i]; ?>
		</div>
	<?php endfor; ?>
	
	
	<!-- creating a form for user to add a route  -->
	<form name="addroute" action="/runningrecords/index.php/record/addroute" method="post">	  
		<table class="form">
			<tr>
				<th colspan="2" style="font-size:14pt;">Add a Route</th>
			</tr>
				
			<tr>
				<td align="right">Name of Route:</td>
				<td><input type="text" size="25" maxlength="50" name="name" /></td>
			</tr>
				
			<tr>
				<td align="right">Distance:</td>
				<td>
					<input type="text" size="9" maxlength="10" name="distance" /><select name="unit">
					<option value="miles">Miles</option><option value="kilometers">Kilometers</option>
				</select></td>
			</tr>
								
			<tr>
			  <td align="right">Description:</td>
			  <td><textarea rows="5" cols="20" name="description"></textarea></td>
			</tr>
															
			<tr>
			  <td colspan="2" align="center"><input type="submit" value=" Add Route >>" /></td>
			</tr>
			  
		</table>
	</form>
		
<?php require('includes/footer.php'); ?>